package com.jprocms.module.cms.config;

import com.jprocms.module.cms.content.ContentEventPublisher;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 事件配置用于 主要里面创建EvenvtPublish
 */
@Configuration(proxyBeanMethods = false)
public class EventConfiguration {

    @Bean
    public ContentEventPublisher processInstanceResultEventPublisher(ApplicationEventPublisher publisher) {
        return new ContentEventPublisher(publisher);
    }

}
